package com.xq.shop.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author gaoxiaojin
 */
@Data
public class EditGoodsTypeDto {

    @NotNull(message = "id不能为空")
    private Integer id;

    /**
     * 图片id
     */
    private Integer imageId;

    private Integer mark;

    private Integer level;

    /**
     * 分类展示名称
     */
    @NotBlank(message = "displayName不能为空")
    private String displayName;

    /**
     * 分类搜索名称
     */
    @NotBlank(message = "searchName不能为空")
    private String searchName;

    /**
     * 父级id
     */
    @NotNull(message = "fatherId不能为空")
    private Integer fatherId;

}
